<template>
    <van-swipe class="my-swipe" :autoplay="5000" indicator-color="#c40000">
        <van-swipe-item v-for="(item ,index) in list" :key="index">
            <img :src="item" alt="" />
        </van-swipe-item>
    </van-swipe>
</template>
<script lang="ts" setup>
import { onMounted, defineProps } from 'vue'

const props = defineProps<{
list: string[]
}>()
function goTo (url :string) {
window.open(url)
}

</script>

<style lang="less" scoped>
.my-swipe .van-swipe-item {
  height:200px;
  img {
      width: 100%;
      height: 100%;
    }
}
</style>
